package com.orange.server.user;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @author : kyc
 * @Description: 用户服务启动类
 * @date : 2021-02-03 11:54
 **/
@EnableDiscoveryClient // 注册中心客户端
@ComponentScan(basePackages = "com.orange")
@EnableSwagger2
@MapperScan(basePackages="com.orange.server.user.dao")
@SpringBootApplication
@Import(value = PaginationInterceptor.class)
public class ServerUserApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServerUserApplication.class,args);
    }
}
